<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>文字超出省略、文字两端对齐</title>

    <style>
        clamp:2 .line-camp(@clamp: 2) {
            text-overflow: -o-ellipsis-lastline;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: @clamp;
            -webkit-box-orient: vertical;
        }

        .overline {
            width: 200px;
            height: auto;
            text-overflow: -o-ellipsis-lastline;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: @clamp;
            /*! autoprefixer: off */
            -webkit-box-orient: vertical;
            /* autoprefixer: on */
        }

        .duiqi {
            margin: 10px 0;
            width: 100px;
            border: 1px solid red;
            text-align: justify;
            text-align-last: justify
        }

        .duiqi:after {
            content: '';
            display: inline-block;
            width: 100%;
        }
    </style>
</head>

<body>
    <div class="overline">
        文字超出省略、文字两端对齐文字超出省略、文字两端对齐文字超出省略
    </div>

    <div class="duiqi">姓名</div>
    <div class="duiqi">手机号码</div>
    <div class="duiqi">账号</div>
    <div class="duiqi">密码</div>
</body>

</html>